<template>
  <div id="app">
    <nav class="navbar">
      <div class="navbar-brand">工作流引擎</div>
      <ul class="navbar-menu">
        <li><router-link to="/" class="nav-link">首页</router-link></li>
        <li><router-link to="/process-designer" class="nav-link">流程设计器</router-link></li>
        <li><router-link to="/task-list" class="nav-link">任务管理</router-link></li>
        <li><router-link to="/form-designer" class="nav-link">表单设计器</router-link></li>
      </ul>
    </nav>
    <main class="main-content">
      <router-view></router-view>
    </main>
  </div>
</template>

<script setup>
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#app {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar {
  background-color: #35495e;
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: #42b983;
}

.main-content {
  flex: 1;
  overflow: auto;
}
</style>
